# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-pymysql
_pkgname=PyMySQL
pkgver=0.9.3
pkgrel=1
pkgdesc="Pure Python MySQL Client"
url="https://pypi.python.org/pypi/PyMySQL"
arch="noarch"
license="MIT"
options="!check" #require mysql for tests
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-pymysql" # Backwards  compatibility
provides="py-pymysql=$pkgver-r$pkgrel" # Backwards  compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2056bc4aca7a600ca50214b399edc6f3068b288c426aecb115db148f645b0ec7e9a1a7134cf67f39d4820ea59a925dc1ce3ed0e383fb5e16e0651e87449824f9  py3-pymysql-0.9.3.tar.gz"
